:root {
    --bg: #0b1020;
    --card: #121a33;
    --accent: #4f7cff;
    --text: #e6ecff;
    --muted: #90a0d0;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: radial-gradient(1200px 600px at 20% -10%, #1a2458 0%, #0b1020 60%), var(--bg);
    color: var(--text);
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

header {
    text-align: center;
    margin-bottom: 24px;
}

header h1 {
    margin: 4px 0 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.subtitle {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin: 16px 0 24px;
}

.search-bar input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #22305f;
    background: #0f1730;
    color: var(--text);
    outline: none;
}

.search-bar input::placeholder {
    color: #7f8fbd;
}

.search-bar button {
    padding: 0 18px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6b8cff, #4f7cff);
    color: white;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(79, 124, 255, .25);
}

.search-bar button:hover {
    filter: brightness(1.05);
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
    border: 1px solid rgba(127, 143, 189, .18);
    border-radius: 16px;
    padding: 16px 16px 14px;
    backdrop-filter: blur(6px);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-sub {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #c7d3ff;
    font-size: 13px;
}

.loading,
.empty,
.error {
    text-align: center;
    padding: 22px;
    border-radius: 12px;
    border: 1px dashed #2a3a70;
    color: #c7d3ff;
}

.error {
    color: #ffb3b3;
    border-color: #703a3a;
}